<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Admin Control Panel</title>
        <link media="all" rel="stylesheet" type="text/css" href="{$smarty.const.HOST_SCOMMON}css/reset.css?{$smarty.const.UPDATE_CSS}"/>
        <link media="all" rel="stylesheet" type="text/css" href="{$smarty.const.HOST_STATICS}backend/css/tag.css?{$smarty.const.UPDATE_CSS}"/>
        <link media="all" rel="stylesheet" type="text/css" href="{$smarty.const.HOST_STATICS}backend/css/main.css?{$smarty.const.UPDATE_CSS}"/> 
        <link media="all" rel="stylesheet" type="text/css" href="{$smarty.const.HOST_STATICS}backend/css/content.css?{$smarty.const.UPDATE_CSS}"/>   
        {if is_array($arrCSS)}
            {section name=i loop=$arrCSS}
            	<link href="{$arrCSS[i]}?{$smarty.const.UPDATE_CSS}" type="text/css" rel="stylesheet" media="all" />
            {/section}
        {/if}
        <script type="text/javascript">
			var HOST_BACKEND	= '{$smarty.const.HOST_BACKEND}';
			var HOST_STATIC 	= '{$smarty.const.HOST_STATICS}';
			var HOST_COMMON 	= '{$smarty.const.HOST_COMMON}';
			var	strMsg			= '{$strMsg}';			
			var	strError		= '{$strError}';
			var strGeneralCode	= '{php}echo session_id();{/php}';		
		</script>
        <script type="text/javascript" src="{$smarty.const.HOST_SCOMMON}js/library/jquery-1.7.1.js"></script>
    </head>
<body>
	<div class="wrapper">
    	{if $AppUI->id}
    		<header id="head"> 
                <div class="top">
                    <hgroup>
                        <h1><img src="{$smarty.const.HOST_STATICS}backend/img/header.gif" width="468" height="80" alt="Administrator Control Panel"></h1>                  
                    </hgroup>                    
                    <ul>
                    	{if isset($arrStoreH) && $arrStoreH|@count > 1}
                        	<li>
                            	<strong>Đang quản lý kho:</strong>
                                <form method="get" action="" class="w-auto">
                                    <select id="sid" name="sid" onChange="this.form.submit();">
                                        {foreach item=item from=$arrStoreH}
                                       		<option value="{$item.storeid}" {if $item.storeid == $smarty.session.MAIN_STORE}selected=selected{/if}>{$item.name}</option>	
                                        {/foreach}
                                    </select>
                                </form>
                           	</li>
	                        <li>|</li>
                        {/if}
                        <li><a href="{$smarty.const.HOST_BACKEND}index/changepw">Đổi mật khẩu</a></li>
                        <li>|</li>
                        <li><a href="{$smarty.const.HOST_BACKEND}index/logout">Thoát</a></li>
                    </ul>
                </div>            
        		<nav>
                    {include file="common/menu.tpl"}
            	</nav>
        	</header>
        {/if}
    	